home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / FlyPaper.sit / Fly Paper / FlyPaper Source / App Sources / floaters.h < prev    next >
Text File  |  1996-06-22  |  2KB  |  57 lines

  1. // File "floaters.h" - 
  2.  
  3. #ifndef ____FLOATERS_HEADER____
  4. #define ____FLOATERS_HEADER____
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. // * ****************************************************************************** *
  11. // * ****************************************************************************** *
  12.  
  13. // Declare a Guide for Passing the Filter Helper, for Universal Headers
  14. typedef void (*FloaterEventProcPtr)(EventRecord *floatEvent, WindowPtr floatWindow);
  15. typedef void (*FloaterCloseProcPtr)(WindowPtr floatWindow);
  16.         
  17. // * ****************************************************************************** *
  18.  
  19. typedef struct FloaterQElem {
  20.     struct FloaterQElem *qLink;
  21.     short qType;
  22.     
  23.     Boolean hideMe;
  24.     long hotApplication;
  25.  
  26.     WindowPtr floatWindow;
  27.     FloaterEventProcPtr eventHandler;
  28.     FloaterCloseProcPtr closeHandler;
  29.     } FloaterQElem, *FloaterQElemPtr;
  30.     
  31. // * ****************************************************************************** *
  32. // * ****************************************************************************** *
  33. // Function Prototypes
  34.  
  35. WindowPtr NewFloater(Ptr wStorage, Rect *bounds, Str255 title, Boolean visFlag,
  36.         short wdefProc, WindowPtr behind, Boolean closeFlag, long refCon, long hotApp, 
  37.         FloaterEventProcPtr eventHandler, FloaterCloseProcPtr closeHandler);
  38. void CloseFloater(WindowPtr win);
  39. void DisposeFloater(WindowPtr win);
  40.  
  41. FloaterQElemPtr GetOneFloater(WindowPtr win, Boolean dequeueIt);
  42. FloaterQElemPtr GetIndFloater(short index, Boolean dequeueIt);
  43.  
  44. Boolean ShowHideFloater(WindowPtr win);
  45. void UpdateFloater(WindowPtr win);
  46. void EventDispatchFloaters(EventRecord *theEvent, WindowPtr win);
  47. void CloseRemainingFloaters(void);
  48.  
  49. Boolean GetFloaterEvent(EventRecord *theEvent);
  50. Boolean TestScreenSaver(void);
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56. #endif ____FLOATERS_HEADER____
  57.